<template>
  <div class="item">
    <img :src="data.picUrl" alt="" />
    <div>{{ data.name }}</div>
    <slot name="more"></slot>
  </div>
</template>

<script>
export default {
  props: {
    data: {
      type: Object,
    },
  },
};
</script>

<style>
.item {
  padding: 10px;
}
.item > img {
  width: 200px;
  height: 200px;
  border-radius: 10px;
}
.item > div {
  width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
</style>